
/* Please install did_multiplegt_dyn before running this file */

 cd "~/Documents/git/peaceKeepingLight/BJPS_replication/data"
 
 use peace_frame.dta, clear
 
 
 
did_multiplegt_dyn nlights_max gid year duringUN_period_indicator if afterUN_period_indicator<1, controls(No_troops_sp time_since_last_best_gid best_ged) effects(6) placebo(6) cluster(gid) save_results("nmax_dur.dta")

did_multiplegt_dyn nlights_calib_mean_orig gid year duringUN_period_indicator if afterUN_period_indicator<1, controls(No_troops_sp time_since_last_best_gid best_ged) effects(6) placebo(6) cluster(gid) save_results("ncal_dur.dta")

did_multiplegt_dyn nlights_mean gid year duringUN_period_indicator if afterUN_period_indicator<1, controls(No_troops_sp time_since_last_best_gid best_ged) effects(6) placebo(6) cluster(gid) save_results("nmean_dur.dta")



did_multiplegt_dyn nlights_max gid year afterUN_period_indicator if duringUN_period_indicator>0 | afterUN_period_indicator>0, controls(No_troops_sp No_troops_country time_since_last_best_gid best_ged) effects(10) placebo(4) cluster(gid) save_results("nmax_after_dur.dta")

did_multiplegt_dyn nlights_calib_mean_orig gid year afterUN_period_indicator if duringUN_period_indicator>0 | afterUN_period_indicator>0, controls(No_troops_sp No_troops_country time_since_last_best_gid best_ged) effects(10) placebo(4) cluster(gid) save_results("ncal_after_dur.dta")

did_multiplegt_dyn nlights_mean gid year afterUN_period_indicator if duringUN_period_indicator>0 | afterUN_period_indicator>0 , controls(No_troops_sp No_troops_country time_since_last_best_gid best_ged) effects(10) placebo(4) cluster(gid) save_results("nmean_after_dur.dta")




did_multiplegt_dyn nlights_max gid year afterUN_period_indicator, controls(No_troops_sp No_troops_country time_since_last_best_gid best_ged) effects(10) placebo(5) cluster(gid) save_results("nmax_after_all.dta")

did_multiplegt_dyn nlights_calib_mean_orig gid year afterUN_period_indicator, controls(No_troops_sp No_troops_country time_since_last_best_gid best_ged) effects(10) placebo(5) cluster(gid) save_results("ncal_after_all.dta")

did_multiplegt_dyn nlights_mean gid year afterUN_period_indicator, controls(No_troops_sp No_troops_country time_since_last_best_gid best_ged) effects(10) placebo(5) cluster(gid) save_results("nmean_after_all.dta")
